import { myRequest } from "../../api/myRequest";

export default {
  // 执行事件
  queryMaterialTemById(params) {
    return myRequest({
      url: "/tz/quality/queryMaterialTemById",
      method: "post",
      data: params,
    });
  },
  queryEquipmentSpotTemByEquId(params) {
    return myRequest({
      url: "/tz/inspection/queryEquipmentSpotTemByEquId",
      method: "post",
      data: params,
    });
  },
  queryEquipmentMaintainTemByEquId(params) {
    return myRequest({
      url: "/tz/inspection/queryEquipmentMaintainTemByEquId",
      method: "post",
      data: params,
    });
  },
  executeCheckPlan(params) {
    return myRequest({
      url: "/tz/inspection/executeCheckPlan",
      method: "post",
      data: params,
    });
  },
  executeSpotPlan(params) {
    return myRequest({
      url: "/tz/inspection/executeSpotPlan",
      method: "post",
      data: params,
    });
  },
  executeMaintainPlan(params) {
    return myRequest({
      url: "/tz/inspection/executeMaintainPlan",
      method: "post",
      data: params,
    });
  },
  approveCheckPlan(params) {
    return myRequest({
      url: "/tz/inspection/approveCheckPlan",
      method: "post",
      data: params,
    });
  },
  approveSpotPlan(params) {
    return myRequest({
      url: "/tz/inspection/approveSpotPlan",
      method: "post",
      data: params,
    });
  },
  approveMaintainPlan(params) {
    return myRequest({
      url: "/tz/inspection/approveMaintainPlan",
      method: "post",
      data: params,
    });
  },
 
};
